function addTarget(name)
  target("agge" .. name)
    set_targetdir("../../bin")
    add_includedirs("../../src", "../../3rd", "../../src/base", "../../src/agge")
    add_linkdirs("../../bin")
    add_deps("nanovg", "agge", "nanovg_agge")
    add_links("nanovg", "agge", "nanovg_agge")
    set_kind("binary")
    add_files(name .. ".c")
  target_end()
end

addTarget("stroke")
addTarget("fill")
addTarget("draw_image")